<?php if (!defined('BASEPATH')) exit('No direct access allowed.');

class MY_Loader extends CI_Loader 
{

    public function __construct() 
    {
		parent::__construct();
    }

	 /** 打开皮肤功能 */ 
    public function switch_theme_on($theme = 'default')
    {
		$this->_ci_view_paths = array(FCPATH . 'templates' . DIRECTORY_SEPARATOR . $theme . DIRECTORY_SEPARATOR	=> TRUE);
		
    }

	 /**  关闭皮肤功能 */ 
    public function switch_theme_off()
    {
    	//just do nothing
    }
    
    
    
}

/* End of file MY_Loader.php */
/* Location: ./application/libraries/MY_Loader.php */
